package org.darkforest.common.services;

import org.darkforest.model.GoodsClass;

import java.util.List;

/**
 * Created by Administrator on 2015/12/24.
 */
public interface GoodsClassService {

    int deleteByPrimaryKey(Integer gcId);

    int insert(GoodsClass record);

    int insertSelective(GoodsClass record);

    GoodsClass selectByPrimaryKey(Integer gcId);

    int updateByPrimaryKeySelective(GoodsClass record);

    int updateByPrimaryKey(GoodsClass record);

    /**
     * 查询商品分类
     * @param goodsClass
     * @return
     */
    List<GoodsClass> findGoodsClass(GoodsClass goodsClass);

    /**
     *
     *
     * @param id
     * @param storeId 根据店铺ID查询店铺绑定分类
     * @param level  分类级别 1 2 3 级
     * @return
     */
    List<GoodsClass> findStoreBindClass(Integer id, Integer storeId, Integer level);
}
